import request from '@/utils/request'

// 应急撤号 未撤号班组列表
export function listTeams(query) {
  return request({
    url: '/workPlan/workPlan/noteamlist',
    method: 'get',
    params: query
  })
}

export function updateteam(id){
  return request({
    url: '/workPlan/workPlan/updateteam/' + id,
    method: 'post'
  })
}


// // 应急撤号 未撤号班组列表
export function nosinglist(query) {
  return request({
    url: '/workPlan/workPlan/nosinglist',
    method: 'get',
    params: query
  })
}
// 撤除单项作业号志时 返回未完成作业的班组列表
export function unlist(id) {
  return request({
    url: '/workPlan/workPlan/unlist/' + id,
    method: 'get'
  })
}

// 应急撤号 撤除单项作业号志
export function updatesingle(id){
  return request({
    url: '/workPlan/workPlan/updatesingle/' + id,
    method: 'post'
  })
}

// 应急撤号 未撤号整车列表
export function noplanlist(query) {
  return request({
    url: '/workPlan/workPlan/noplanlist',
    method: 'get',
    params: query
  })
}

//撤除整车作业号志时查询未完成的单项作业列表
export function singlelist(id) {
  return request({
    url: '/workPlan/workPlan/singlelist' + id,
    method: 'get'
  })
}

// 应急撤号 撤除整车作业号志
export function updateplan(id){
  return request({
    url: '/workPlan/workPlan/updateplan/' + id,
    method: 'post'
  })
}

// 撤号注销与授权   整车作业
export function planauth(data){
  return request({
    url: '/workPlan/workPlan/planauth',
    method: 'post',
    data
  })
}

// 撤号注销与授权  单项作业
export function singleauth(data){
  return request({
    url: '/workPlan/workPlan/singleauth',
    method: 'post',
    data
  })
}

// 撤号注销与授权  班组
export function updateteamauth(data){
  return request({
    url: '/workPlan/workPlan/updateteamauth',
    method: 'post',
    data
  })
}
// 有权撤号人员列表
export function userlist(){
  return request({
    url: '/workPlan/workPlan/userlist',
    method: 'get',
  })
}



